package  
{
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	import flash.display.Stage;
	/**
	 * 层级管理器layers
	 * @author WLDragon
	 */
	public class Lyr 
	{
		static public function init(main:DisplayObject):void
		{
			var s:Stage = main.stage;
			s.addChild(background);
			s.addChild(scene);
			s.addChild(map);
			s.addChild(ui);
		}
		
		static public function setBackGround(color:uint,width:int = 513,height:int = 450):void
		{
			background.graphics.beginFill(color);
			background.graphics.drawRect(0, 0, width, height);
			background.graphics.endFill();
		}
		
		static public const background:Sprite = new Sprite();
		static public const scene:Sprite = new Sprite();
		static public const map:Sprite = new Sprite();
		static public const ui:Sprite = new Sprite();
	}

}